package com.shop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.common.ResponseResult;
import com.shop.entity.Manage;
import com.shop.entity.vo.ManageRoleVo;

import java.util.List;

public interface manageService {
    public List<Manage> selectAll();

    Page<Manage> selectPage(Integer pagesize, Integer pagenum);
    Page<ManageRoleVo> selectVo(Integer pagesize, Integer pagenum,String query);
    ResponseResult addManage(Manage manage);
    ResponseResult deleteManage(Integer id);
    ResponseResult updateManage(Integer uId,boolean type);
    ResponseResult selectOne(Integer uId);
    ResponseResult updateOne(Integer id,Manage manage);

    ResponseResult updateRole(Integer id, Integer rid);
}
